package Classes.GameViews.ViewDisplayers.MapTargets.MapMoveTargets.MapNPCs// ActionScript file
{
	import Classes.GameDatas.GD_SickMan;

	public class MN_SickMan extends MapNPC
	{
		public function MN_SickMan(gd:GD_SickMan):void
		{
			super(gd);
			this.init();
		}
		
		private function init():void
		{
			this.isWander=true;
			this.nextWanderCount=Math.random()*300;
			//this.positionConditionsAry=["避难所内","没有NPC"];
			this.moveConditionsAry=["避难所内","没有NPC"];
			this.beginDrawMyView();
		}
		
		override protected function beginDrawMyView():void
		{
			this.draw();
		}
		
		private function draw():void
		{
			this.graphics.lineStyle(1,0x000000);
			this.graphics.beginFill(0xffff00);
			this.graphics.moveTo(-5,10);
			this.graphics.lineTo(5,10);
			this.graphics.lineTo(5,-10);
			this.graphics.lineTo(-5,-10);
			this.graphics.lineTo(-5,10);
			this.graphics.endFill();
		}
		
		public static function creat(creatData:GD_SickMan):MN_SickMan
		{
			var creatTarget:MN_SickMan=new MN_SickMan(creatData);
			return creatTarget;
		}
		
		/*getter & setter*/
		public function get sickManData():GD_SickMan
		{
			return this.gameData as GD_SickMan;
		}
		
		override public function get speed():int
		{
			return this.sickManData.speed;
		}
		
		override public function get correctPositionConditionsAry():Array
		{
			return ["避难所内","没有建筑"]
		}
		
		override public function get resetPositionConditionsAry():Array
		{
			return ["避难所内","没有NPC","没有建筑"]
		}
	}
}